﻿using mds.BaseFrameModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mds.DistributedRelay
{
    public interface ICache
    {
        T Get<T>(string key) where T :class, ISystemCache,new();
        OperationResult<bool> Add<T>(String key, T data) where T : class, ISystemCache, new();
        OperationResult<bool> Store<T>(T data) where T : class, ISystemCache, new();
        OperationResult<bool> Delete(string key);
        OperationResult<bool> Deletes(List<string> keys);
        Dictionary<string, T> Gets<T>(List<string> keys) where T : class, ISystemCache, new();
    }
}
